home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10226 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: calender program
  5. Date: Sat, 16 Mar 96 01:40:10 GMT
  6. Organization: none
  7. Message-ID: <826940410snz@genesis.demon.co.uk>
  8. References: <4ic2ka$1bda@hearst.cac.psu.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4ic2ka$1bda@hearst.cac.psu.edu>
  15.            bdh136@psu.edu "Brian D. Holden" writes:
  16.  
  17. >Needed:
  18. >
  19. >Does anyone have or know where to get.  The algorithm or code for a
  20. >calender program which will determine the day of the week of any day
  21. >while knowing a reference date and day.
  22.  
  23. The standard library provides the mktime() function which can do this,
  24. provided the date is within the range that your implementation can handle.
  25.  
  26. -- 
  27. -----------------------------------------
  28. Lawrence Kirby | fred@genesis.demon.co.uk
  29. Wilts, England | 70734.126@compuserve.com
  30. -----------------------------------------
  31.